package com.pkk.alert.web.config.properties;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author peikunkun
 * @version V1.0
 * @date 2020-11-03 11:19
 **/
@Data
@Configuration
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "com.pkk.schedule")
public class ScheduleProperties {

  /**
   * 定时任务的配置
   * {com.pkk.schedule.info=执行方法的bean的名称.执行的方法=执行方法的表达式}
   * {com.pkk.schedule.info=baneName.invokeMethedName=invokeMethedNameCron}配置
   * example:com.pkk.schedule.info=simpleSchedule.executeScheduleSimple=0/5 * * * * ?
   **/
  private Map<String, String> info = new ConcurrentHashMap<>();


}
